//  jQincludes - v1- 201003151131
//  this isn't a plugin yet...just a small script to load content into the divs

//  just include this script in your page - make sure you've included jquery as well

//  you can used the hosted version if you'd like:
//  <script type="text/javascript" src="http://jqinclude.googlecode.com/svn/trunk/jquery.jqincludes.js"></script>  

//  on your page just place a "div.jqinclude" where you want the included content, set the title attribute as your external file
//  <div class="jqinclude" title="header.html"></div>

jQuery(document).ready(function($) {
	
	$("div.jqinclude").each(load_include);

	function load_include() {
	  $(this).removeClass("jqinclude").addClass("jqincluded").load($(this).attr("title"), function() {
	    $(this).find("div.jqinclude").each(load_include);
	  });
	}
	
});
